package com.daka.enumerate;

/**
 * Created by yangx
 * Date: 2016/8/9 0009
 * Time: 11:05
 */
public enum StatusCode {

    OK(0, "执行成功"),

    SERVER_EXCEPTION(1, "服务器内部错误"),

    COMMON_UPLOAD_FILE(2,"文件上传异常"),
    COMMON_CALL_LIMITED(3,"调用次数超限"),
    COMMON_HTTP_ACTION(4,"http请求异常"),
    COMMON_INSUFFICIENT_PERMISSIONS(5,"权限不足"),
    COMMON_INVALID_FORMAT(6,"无效数据格式"),
    COMMON_MISS_SIGN(7,"缺少签名参数"),
    COMMON_INVALID_SIGN(8,"错误的签名参数"),
    COMMON_MISS_CUSTOMER(9,"缺少合作伙伴代码"),
    COMMON_INVALID_CUSTOMER(10,"错误的合作伙伴代码"),
    COMMON_MISS_TIMESTAMP(11,"缺少时间戳参数"),
    COMMON_INVALID_TIMESTAMP(12,"错误的时间戳参数"),
    COMMON_MISS_VERSION(13,"缺少版本参数"),
    COMMON_INVALID_VERSION(14,"错误的版本参数"),
    COMMON_PARAM_ERROR(15,"参数错误"),
    COMMON_INVALID_TOKEN(16,"无效的TOKEN"),
    COMMON_USER_NOT_LOGIN(17,"用户未登录"),
    COMMON_VERIFIER_CODE_ERROR(18,"手机验证码不正确"),
    COMMON_FORMAT_ERROR(19,"格式转换失败"),
    COMMON_SMS_SEND_ERROR(20,"短信发送失败"),

    USER_NOT_EXISTS(10001,"用户不存在"),
    USER_EXISTS(10002,"用户已存在"),
    USER_INFO_NOT_FULL(10003,"请完善个人资料"),
    USER_IS_FROST(10004,"用户已被冻结"),


    VOLUNTEER_NOT_EXISTS(12001,"志愿者不存在"),
    VOLUNTEER_GROUP_REL_NOT_EXISTS(12002,"志愿者未加入该志愿者团体"),
    VOLUNTEER_GROUP_REL_EXISTS(12003,"志愿者未加入该志愿者团体"),

    ORGANIZATION_NOT_EXISTS(14001,"组织不存在"),

    GROUP_NOT_EXISTS(16001,"社团不存在"),

    ACTIVITY_NOT_EXISTS(18001,"活动不存在"),
    ACTIVITY_NOT_OUTSIDE_RECRUIT(18002,"本活动暂未对外招募"),
    ACTIVITY_NOT_START(18003,"活动尚未开始"),
    ACTIVITY_NOT_APPLY(18004,"您尚未加入该活动"),
    ACTIVITY_FULL_APPLY(18005,"活动招募名额已满"),
    ACTIVITY_TIME_OVERLAP(18006,"当前活动时间和已报名的活动时间上有重叠,不可以报名"),
    ACTIVITY_IS_CLOSE(18007,"活动已被封存"),


    SIGN_NOT_EXISTS(20001,"签到信息不存在"),
    SIGN_NOT_NEARBY(20002,"未到活动现场,不可以打卡"),
    SIGN_NO_TIME_TO(20003,"还未到签到时间"),

    INSURANCE_NOT_EXISTS(22001,"保险不存在"),

    WELFARE_NOT_EXISTS(24001,"福利不存在"), ;

    private int code;
    private String message;

    StatusCode(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
